home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / APW.ORCA.Cmds / Gregs.APW.Utils / Documentation / Count < prev    next >
Encoding:
Text File  |  1990-07-19  |  1.4 KB  |  42 lines  |  [TEXT/pdos]

  1. Count -- Count lines and characters
  2.  
  3. Syntax      Count [-l] [-c] [file...]
  4.  
  5. Description Counts the lines and characters in its input, and writes the
  6.             results to standard output.  If no files are specified, standard
  7.             input is read.  If more than one file is specified, separate counts
  8.             are printed for each file, one per line, preceded by the filename,
  9.             and a total is printed following the list.
  10.  
  11. Input       Standard input is read if no files are specified on the command
  12.             line.
  13.  
  14. Output      Line and characters counts are written to standard output.
  15.  
  16. Diagnostics Errors are written to diagnostic output (Standard Error).
  17.  
  18. Status      Count may return the following status codes:
  19.             0   No errors.
  20.             1   Error in parameters.
  21.             2   Unable to open input file, or out of memory.
  22.  
  23. Options     -l  Write only the line counts.
  24.  
  25.             -c  Write only the character counts.
  26.  
  27.             -p  Write version and copyright information to diagnostic output.
  28.  
  29. Examples    Count MakeFile.c Count.c
  30.  
  31.             Displays line counts and character counts in the form
  32.  
  33.             MakeFile.c  43      981
  34.             Count.c     153     3327
  35.             Total       196     4303
  36.  
  37.  
  38.             Files | Count -l
  39.  
  40.             Displays the total number of files and directories in the current
  41.             directory.
  42.